package com.myjavalab.thinkinginjava4;

//: Cartoon.java
//Constructor calls during inheritance
class Art {
	Art() {
		System.out.println("Art constructor");
	}
}

class Drawing extends Art {
	private Drawing() {
		System.out.println("Drawing constructor");
	}
	
	Drawing(int i) {
		System.out.println("Drawing constructor");
	}
}

public class Cartoon extends Drawing {
	Cartoon() {
		super(2);
		System.out.println("Cartoon constructor");
	}

	public static void main(String[] args) {
		Cartoon x = new Cartoon();
	}
}